//
//  MyAddressTableViewCell.m
//  shop
//
//  Created by 邵存将 on 17/5/31.
//  Copyright © 2017年 geek-zoo studio. All rights reserved.
//

#import "MyAddressTableViewCell.h"

@implementation MyAddressTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(void)setContent:(NSDictionary *)dict{
    self.name.text=[dict objectForKey:@"name"];
    self.address.text=[dict objectForKey:@"address"];
    NSNumber *address_type=[dict objectForKey:@"default_address"];
    if (address_type.integerValue==1) {
        self.chooseImg.hidden=NO;
    }else{
        self.chooseImg.hidden=YES;
    }
}



@end
